package com.gold.config.client;

public class ConfigClientStateHolder
{
    private static ThreadLocal<String> state = new ThreadLocal();

    public static void resetState()
    {
        state.remove();
    }

    public static void setState(String newState)
    {
        if (newState == null)
        {
            resetState();
            return;
        }
        state.set(newState);
    }

    public static String getState()
    {
        return (String)state.get();
    }
}
